/*
 * =====================================================================================
 *
 *       Filename:  FileSharing.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  10/12/2012 10:25:57 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *   Organization:  
 *
 * =====================================================================================
 */
#include <string>
#include <ostream>
#include <istream>
#include <iostream>
#include <ios>
#include <fstream>
#include "../Headers/types.h"
#include "../Headers/authr.h"
#include "../Headers/log.h"
#include "FileSharing.h"

using namespace TOB;

int main(int argc, char ** argv) {
	
	FS_File f;
	char buffer[255];
	f.open("1.txt");
	//std::cout << f.get_file_size("1.txt");
	f.getBytes("1.txt", 50, buffer);
	f.close("1.txt");
	std::ofstream out("2.txt");
	out << buffer;
	std::cout << buffer << std::endl;
	
	return 0;
}
